@echo off
setLocal EnableDelayedExpansion

set MAIN_CLASS="com.wuyangnju.lj.simulation.master.runner.EmbededJettyRunner"

set JAVA_HOME="%~dp0..\jre"
set JAVA_EXE="%JAVA_HOME%\bin\java.exe"

set CLASSPATH="%~dp0..\classes;
for %%i in ("%~dp0..\lib\*") do (
  set CLASSPATH=!CLASSPATH!;%%i
)
set CLASSPATH=!CLASSPATH!"

%JAVA_EXE% -cp !CLASSPATH! %MAIN_CLASS% 8081 /master %~dp0..\war "%*"
